package com.alavente.adapters;

import com.alavente.forms.OffreForm;
import com.alavente.objects.Offre;
import com.alavente.objects.OffreId;

public class OffreAdapter extends AbstractAdapter<OffreForm, Offre>{

public Offre adapt(OffreForm form) {
		
		Offre offre = new Offre();		
		super.adapt(form, offre);

		OffreId offreId = new OffreId(form.getNumUser(), form.getNumDemande());
		offre.setId(offreId);
		
		return offre;
	}
}
